﻿@{
    ViewBag.Title = "RoomAdd";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="~/Resources/Css/common.css" rel="stylesheet" />
<script src="~/resources/plugins/bootstrap-filestyle/1.2.1/bootstrap-filestyle.min.js"></script>
<script src="~/resources/plugins/ckeditor/4.5.5/standard/ckeditor.js"></script>
<script src="~/resources/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<link href="~/resources/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet" />
<script src="~/Resources/jquery-confirm/js/jquery-confirm.js"></script>
<link href="~/Resources/jquery-confirm/css/jquery-confirm.css" rel="stylesheet" />
<script src="~/Resources/Script/HtmlUtil.js"></script>
<form id="RoomAddForm">
    <div class="boxmain">
        <!-- box / title -->
        <div class="title">
            <ol class="breadcrumb">
                <li><a href="javascript:void(0);" onclick="goBack()">Meeting Room Management</a></li>
                <li class="active">Create Meeting Room</li>
            </ol>
        </div>

        <div class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label"><span>*</span>Province</label>
                <div class="col-sm-10">
                    @{
                        IQueryable<Exam.Model.Province> provincelist = ViewData["ProvinceList"] as IQueryable<Exam.Model.Province>;
                        List<SelectListItem> list = new List<SelectListItem>();
                        list.Add(new SelectListItem { Text = "Select Province", Value = "", Selected = true });
                        foreach (Exam.Model.Province item in provincelist)
                        {
                            list.Add(new SelectListItem { Text = item.ProvinceName, Value = item.ProvinceID.ToString() });
                        }
                    }
                    @Html.DropDownList("ProvinceSelect", list, new { @class = "form-control" })
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span>*</span>City</label>
                <div class="col-sm-10">
                    @Html.DropDownList("citylist", new List<SelectListItem> { new SelectListItem { Text = "Select City", Value = "", Selected = true } }, new { @class = "form-control" })
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span>*</span>Meeting Room</label>
                <div class="col-sm-10">
                    <input type="text" id="RoomName" name="RoomName" class="form-control" placeholder="Meeting Room Name" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Is Active</label>
                <div class="col-sm-10">
                    @{
                        List<SelectListItem> activelist = new List<SelectListItem> {
                new SelectListItem { Text = "Active", Value = "0" },
                new SelectListItem { Text = "InActive", Value = "1" } };
                    }
                    @Html.DropDownList("PIsActive", activelist, new { @class = "form-control" })
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"><span>*</span>Detail Address</label>
                <div class="col-sm-10">
                    <textarea name="dAddress" id="dAddress" class="form-control" rows="6" maxlength="200"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Remark</label>
                <div class="col-sm-10">
                    <textarea name="desTextarea" id="desTextarea" rows="6" maxlength="200"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-10">
                    <input type="submit" class="col-sm-1 btn btn-primary" value="Save" onclick="chengeBack(true)" />
                    <div class=" col-sm-1"></div>
                    <input type="submit" class="col-sm-2 btn btn-primary" value="Save & Continue" onclick="chengeBack(false)" />
                    <div class=" col-sm-1"></div>
                    <input type="button" class="col-sm-1 btn btn-default" onclick="javascript: goBack();" value="Back" />
                </div>
            </div>
        </div>
    </div>
</form>
<script src="~/Resources/Script/MeetRoom/RoomAdd.js"></script>
<script src="~/Resources/Script/City/ProvinceGetCity.js"></script>